<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
body{height:auto;font-family: "Microsoft YaHei";}
button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;}
</style>
<body class="hold-transition box box-main">
	<input id="lookupId" name="lookupId" type="hidden" />
	<input id="lookupName" name="lookupName"  type="hidden" />
	<div class="container-div">

		<div class="col-sm-12 select-table table-striped">
			<table id="lookuplist"  data-mobile-responsive="true" style="white-space:nowrap"></table>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script th:inline="javascript">
		$(function() {
			var url = ctx + "module/propertyConstraintBean/lookupListData";
			// url = ctx + "module/domain/list";

            $('#lookuplist').bootstrapTable({
				modalName: "约束验证类Bean名称",
                url: url,
                height:275,
                method: 'post',
                contentType: "application/x-www-form-urlencoded",
                classes:'table table-xkap table-hover',
                // pageNumber: 1,                                      // 初始化加载第一页，默认第一页
                // pageSize: 10,                                       // 每页的记录行数（*）
                // pageList: [10, 25, 50],                             // 可供选择的每页的行数（*）
                iconSize: 'outline',                                // 图标大小：undefined默认的按钮尺寸 xs超小按钮sm小按钮lg大按钮
                toolbar: '#toolbar',                                // 指定工作栏
                // sidePagination: "server",                           // 启用服务端分页
                singleSelect    : true,                     // 单选checkbox
                columns:[
                    { checkbox: true
                    },
                    {
                        field : 'name',
                        title : '名称'
                    },
                    {
                        field : 'value',
                        title : 'Bean名称'
                    },
                    {
                        field : 'description',
                        title : '描述'
                    },
                    ],
                idField:'name',
                uniqueId:'name',
                selectItemName:'name',
                clickToSelect:true,
                onClickRow: function (row) {
                    $("#lookupId").val(row.name);
                    $("#lookupName").val(row.name+'['+row.description+']');
                }
            });
		});

		
	</script>
</body>
</html>
